package com.ht.module.ai.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * <p>
 * AI聊天历史消息表
 * </p>
 *
 * @author hejialun
 * @since 2025-06-09
 */

@TableName("ai_chat_message")
@Data
@Accessors(chain = true)
public class AiChatMessage{

	@ApiModelProperty("主键ID")
    @TableId
    private String id;


	@ApiModelProperty("会话ID（对应 ai_chat_session.session_id）")
    private String sessionId;

	@ApiModelProperty("角色（user / assistant / system）")
    private String role;

	@ApiModelProperty("消息内容")
    private String content;

	@ApiModelProperty("消息发送时间")
    private LocalDateTime messageTime;


}
